<template>
    <div class="bankPay">
        <van-nav-bar title="银行卡账号" left-arrow @click-left="goBack"></van-nav-bar>
        <div class="content">
            <div class="info">
                <label for="userName">姓名</label>
                <input type="text" v-model="userName" id="userName">
            </div>
            <div class="info">
                <label for="bank-deposit">开户银行</label>
                <input type="text" v-model="bankDeposit" id="bankd-eposit">
            </div>
            <div class="info">
                <label for="card-number">银行卡号</label>
                <input type="text" v-model="cardNumber" id="card-number">
            </div>
            <div class="info">
                <label for="pay-password">支付密码</label>
                <input type="text" v-model="payPassword" id="pay-password">
            </div>
            <div class="forget-paypw">
                <router-link :to="{name: 'phoneLogin'}" tag="span">忘记支付密码？</router-link>
            </div>
            <div class="submit">
                <button type="submit" class="submit-btn">提交</button>
            </div>
        </div>
    </div>
</template>
<script>
import Vue from "vue"
import axios from "axios"
import {
    NavBar,
} from "vant"
export default {
    components: {
        [NavBar.name]: NavBar,
    },
    data() {
        return {
            userName: "",
            bankDeposit: "",
            cardNumber: "",
            payPassword: "",
        }
    },
    methods: {
        //返回上一页
        goBack() {
            this.$router.go(-1);
        },
    }
}
</script>
<style lang="less" scoped>
.bankPay {
    background: #fff;
    .content {
        background: #fff;
        .info {
            text-align: left;
            margin: 0 15px;
            width: 90%;
            font-size: 14px;
            color: #323233;
            & > label {
                display: block;
                margin: 10px 0;
            }
            & > input {
                padding: 10px;
                width: 94%;
                border: none;
                border-radius: 20px;
                background: #efefef;
            }
        }
        .forget-paypw {
            margin: 15px 15px 0 15px;
            text-align: right;
            width: 90%;
            font-size: 14px;
            color: #323233;
        }
        .submit {
            margin: .67rem auto 0 auto;
            width: 90%;
            background-color: #fff;
            color: #fff;
            font-size: 14px;
            .submit-btn {
                padding: 10px;
                width: 100%;
                height: 1.07rem;
                border: 0;
                border-radius: 20px;
                background: #ff976a;
                outline: none;
            }
        }
    }
}
</style>
